package com.jarvis.hospital;

import android.Manifest;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.jarvis.hospital.common.BaseActivity;
import com.jarvis.hospital.common.FileResponseData;
import com.jarvis.hospital.common.ResponseData;
import com.jarvis.hospital.login.model.FileModel;
import com.jarvis.hospital.login.model.LoginModel;
import com.jarvis.hospital.login.model.UserModel;
import com.jarvis.hospital.servers.ApiService;
import com.jarvis.hospital.util.AddressManager;
import com.jarvis.hospital.util.SharePreferenceKey;
import com.jarvis.hospital.util.SharePreferenceUtils;
import com.jarvis.hospital.util.net.RequestApi;
import com.tbruyelle.rxpermissions2.RxPermissions;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Consumer;
import io.reactivex.schedulers.Schedulers;
import me.iwf.photopicker.PhotoPicker;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;

public class ImageDetailActivity extends BaseActivity implements View.OnClickListener {
    @BindView(R.id.ivHead)
    ImageView ivHead;

    @Override
    public int getLayoutId() {
        return R.layout.activity_imgage_detail;
    }

    @Override
    public void initData() {

    }

    @Override
    public void initView() {

        ivHead.setOnClickListener(this);
        Bundle bundle = this.getIntent().getExtras();
       String url = bundle.getString("url");
        Glide.with(this)
                .load(url)
                .error(R.drawable.img_main_bg)
                .into(ivHead);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.ivHead:
                finish();
                break;

        }
    }
}
